extends "../../azurlane_ctrl/AzurItem.gd"
func init():
	.init()
	name = "[普通]戴拿爆能加农"
	att.atk = 50
	att.mgiAtk = 50
	att.air = 50
	info = "非特效伤害造成击杀时，对目标周围(九宫格)的敌人造成[溢出伤害50%]的特效伤害\n[color=#DC143C]同时装备三件时可升级[/color]"
	
func _connect():
	._connect()
	masCha.connect("onKillChara", self, "onKillChara")
func onKillChara(atkInfo):
	if atkInfo.atkType == sys.AtkType.EFF:return
	var dmg = min(2000, (atkInfo.middleDmg - atkInfo.finalDmg) * 0.5)
	if dmg <= 0:return
	for i in masCha.getAroundChas(atkInfo.hitCha.cell, false):
		if i != atkInfo.hitCha:
			masCha.azurHurtChara(i, dmg, sys.HurtType.WEAPON, sys.AtkType.EFF, "戴拿爆能加农")

func upgrade():
	name = "[color=#FFFF00][史诗]戴拿爆能加农"
	att.atk = 100
	att.mgiAtk = 100
	att.air = 100
	info = "造成击杀时，对目标周围(九宫格)的敌人造成[溢出伤害50%]的伤害(攻击与伤害类型和击杀时相同)"